Module-level declarations

Types

Link copied to clipboard
struct cell
Link copied to clipboard
Link copied to clipboard
entity occupied
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
entity plot_cell
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
val LANDSCAPING_PERMIT: text = "voucher_landscaping"
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
function _check_grid_access(plot_id: integer, cells: set<location>)
Link copied to clipboard
function _patch_plot(plot_id: integer, area: area, patches: list<patch_cell_dto>)
Link copied to clipboard
function any_water(plot_id: integer, cells: set<location>): boolean
Link copied to clipboard
function batch_mint(plot_data: list<plot_with_cells>, chain_id: text, contract_address: byte_array)
Link copied to clipboard
@extend(check_cells_on_same_height) function check_cells_on_same_height(griddable: instance, cells_per_height: list<list<location>>): boolean
Link copied to clipboard
@extend(check_grid_access) function check_grid_access(griddable: instance, cells: set<location>)
Link copied to clipboard
function create_cells(cells_to_create: list<immutable_mirror_struct<plot_cell>>)
Link copied to clipboard
Link copied to clipboard
function get_theme(region: text): integer
Link copied to clipboard
function is_water(plot_id: integer, location: location): boolean
Link copied to clipboard
function mint(plot_id: integer, plot_data: plot, chain_id: text, contract_address: byte_array, area: area, cells: list<cell>)
Link copied to clipboard
Link copied to clipboard
function require_patch_location_within_plot_boundaries(plot_area: area, patch_location: location)
Link copied to clipboard
Link copied to clipboard
function set_cell_type(plot_id: integer, x: integer, y: integer, cell_type: integer?)
Link copied to clipboard
function set_height(plot_id: integer, x: integer, y: integer, height: integer?)
Link copied to clipboard
function validate_cell_type(cell_type: integer)
Link copied to clipboard
function validate_height(height: integer)
Link copied to clipboard

Queries

Link copied to clipboard
@mount("plots.get_occupied_plots") query get_occupied_plots(region: text): list<integer>
Link copied to clipboard
@mount("plots.get_plot_configs") query get_plot_configs(): (enabled: boolean,)
Link copied to clipboard
@mount("plots.get_plot_ids_by_player") query get_plot_ids_by_player(username: text, take: integer, skip: integer): list<integer>
Link copied to clipboard
@mount("plots.get_plot_map") query get_plot_map(plot_id: integer): plot_details
Link copied to clipboard
@mount("plots.get_plot_map_ordered_list") query get_plot_map_ordered_list(plot_id: integer): plot_details_ordered_list
Link copied to clipboard
@mount("plots.get_plot_meta") query get_plot_meta(plot_id: integer): plot_meta_dto?

Operations

Link copied to clipboard
@mount("plots.patch_plot") operation patch_plot(patch_plot_dto: patch_plot_dto, account_id: byte_array, auth_descriptor_id: byte_array)
Link copied to clipboard
@mount("plots.patch_plot_as_admin") operation patch_plot_as_admin(patch_plot_dto: patch_plot_dto)
Link copied to clipboard
@mount("plots.set_global_plot_parameters") operation set_global_plot_parameters(enabled: boolean)
Link copied to clipboard
@mount("plots.set_plot_name") operation set_plot_name(name: text, plot_id: integer, account_id: byte_array, auth_descriptor_id: byte_array)